package demo5;

/**
 * ClassName Bird
 * Description TODO
 * Author Yanyan
 * Date 2025/11/13 14:04
 * Version 1.0
 */
public class Bird extends Animal implements IRunnable,IFlyable{
    public Bird(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name + "正在吃鸟食儿");
    }

    @Override
    public void fly() {
        System.out.println(name + "起飞咯！");
    }

    @Override
    public void run() {
        System.out.println(name + "使用鸟腿奔跑！");
    }
}
